function makeInt(angka){
if (angka < - 0.0000001
){
var bulat = Math.ceil(angka-0.0000001 );}
else { var bulat = Math.floor(angka+0.0000001 ); }
return (bulat);
}
function JDC(tg,bl,th){
if(bl < 3){
th=th-1;
bl=bl+12;
}
A=Math.floor(th/100);
B=2-A+Math.floor(A/4);
if(th < 1583) B=0;
if(th == 1582){
if(bl > 10) B = -10;
if(bl == 10){
B = -10;
if(tg > 4) B == -10;
}
}
JDC = Math.floor(365.25*(th+4716))+Math.floor(30.6001*(bl+1))+tg+B-1524.5;
return(JDC);
} 
function hijri(t,b,yr){
ar_bulan =new Array("Muharram","Safar", "Rabiul Awwal","Rabiul Akhir","Jumadal Awwal","Jumadal Akhir","Rajab", "Sya'ban","Ramadhan","Syawwal", "Zulqaidah","Zulhijjah");
jd=JDC(t,b,yr);
l = jd -1948440+10632+0.5;
n=makeInt((l-1 )/10631 );
l=l- 10631 *n+354;
z=(makeInt(( 10985 -l)/5316 ))*(makeInt((50*l)/ 17719))+(makeInt(l/5670))*(makeInt((43 *l)/15238 ));
l=l-(makeInt((30 -z)/15 ))*(makeInt((17719 *z)/50))-(makeInt(z/16))*(makeInt(( 15238*z)/ 43))+29 ;
m=makeInt((24*l)/709);
d=l-makeInt((709*m)/24);
y=30 *n+ z-30;
yj=30 *n+z-30+512;
g = m-1;
return d+" "+ar_bulan[m-1]+" "+y;
}
var saiki=new Date();
var tahun = saiki.getFullYear();
var bulan = saiki.getMonth()+1;
var tanggal =saiki.getDate();
var hari=new Array ("Ahad","Senin","Selasa","Rabu","Kamis","Jum'at","Sabtu");
var namabulan = new Array("Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember");
document.write(hari[dow]+", "+hijri(tanggal,bulan,tahun)+" ");
document.write(" / ");
document.write(tanggal+" "+namabulan[bulan-1]+" "+tahun);